package cn.common.enums;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2022/12/21
 */
public enum RetryLevel {
    ONE(1, 10),
    TWO(2, 30),
    THREE(3, 60),
    FOUR(4, 120),
    FIVE(5, 180),
    SIX(6, 240),
    SEVEN(7, 300),
    EIGHT(8, 360),
    NINE(9, 420),
    TEN(10, 480),
    ELEVEN(11, 540),
    TWELVE(12, 600),
    THIRTEEN(13, 1200),
    FOURTEEN(14, 1800),
    FIFTEEN(15, 3600),
    SIXTEEN(16, 7200);

    private int level;
    private int seconds;

    private RetryLevel(int level, int seconds) {
        this.level = level;
        this.seconds = seconds;
    }

    public int getLevel() {
        return this.level;
    }

    public int getSeconds() {
        return this.seconds;
    }
}

